GrapeCity.Win.MultiRow Namespace > RowCollection Class > Insert Method : Insert(Int32,Object[]) Method |
<FeatureAttribute(Name="RowCollection", Version="v5.0")> Public Overloads Overridable Sub Insert( _ ByVal rowIndex As Integer, _ ByVal ParamArray values() As Object _ )
Dim instance As RowCollection Dim rowIndex As Integer Dim values() As Object instance.Insert(rowIndex, values)
Exception | Description |
---|---|
System.InvalidOperationException | This method is accessed when Template is a null reference (Nothing in Visual Basic). -or- The rowIndex is equal to the number of Rows in the collection and the AllowUserToAddRows property of the GcMultiRow control is set to true. -or- The DataSource property of the GcMultiRow control is not a null reference (Nothing in Visual Basic). |
System.ArgumentOutOfRangeException | The rowIndex is less than 0 or greater than the number of Rows in the collection. |
System.ArgumentNullException | The values parameter is a null reference (Nothing in Visual Basic). |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2